package goActorsCommon

// Represents a message.
type Message struct {
	// Identifies the message sender.
	Sender	*GoActorPid
	// Message body.
	Data	[]byte
}

func New_Message( sender *GoActorPid, data []byte ) *Message {
	return &Message{ sender, data }
}

type MessageWrapper struct {
	Message	*Message
	GoActor	int32
}

func New_MessageWrapper( message *Message, goActor int32 ) *MessageWrapper {
	return &MessageWrapper{ message, goActor }
}

